package com.hjm.project.job.task.domain;

import com.hjm.framework.aspectj.lang.annotation.Excel;
import com.hjm.framework.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.File;

/**
 * 文件下载队列对象 job_task
 * 
 * @author maker-platform
 * @date 2021-01-16
 */
public class JobTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 操作类型 */
    @Excel(name = "操作类型")
    private Long operatorType;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 操作内容 */
    @Excel(name = "操作内容")
    private String operatorContent;

    /** 来源（0 管理平台 1服务商平台） */
    @Excel(name = "来源", readConverterExp = "0=,管=理平台,1=服务商平台")
    private Long source;

    /** 状态 0 生成成功 1 生成失败 2 正在生成 */
    @Excel(name = "状态 0 生成成功 1 生成失败 2 正在生成")
    private Long status;

    /** 删除状态 0 未删除 1 已删除 */
    @Excel(name = "删除状态 0 未删除 1 已删除")
    private Long isDelete;

    private File file;

    public File getFile() {
        return file;
    }

    public void setFile(File file) {
        this.file = file;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOperatorType(Long operatorType)
    {
        this.operatorType = operatorType;
    }

    public Long getOperatorType()
    {
        return operatorType;
    }
    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getFileName()
    {
        return fileName;
    }
    public void setOperatorContent(String operatorContent)
    {
        this.operatorContent = operatorContent;
    }

    public String getOperatorContent()
    {
        return operatorContent;
    }
    public void setSource(Long source)
    {
        this.source = source;
    }

    public Long getSource()
    {
        return source;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setIsDelete(Long isDelete)
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete()
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("operatorType", getOperatorType())
            .append("fileName", getFileName())
            .append("operatorContent", getOperatorContent())
            .append("source", getSource())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("status", getStatus())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
